package drg_group.changzhou_2022.ADRG;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import drg_group.changzhou_2022.Base;
import drg_group.changzhou_2022.MedicalRecord;
import drg_group.changzhou_2022.DRG.MDCE_DRG;

public class EZ1 {
    public static String group(MedicalRecord record){
        String[] adrg_zd={"A27.900x004","B67.905","B67.906","B69.800x008","D17.400x002","D17.400x003","D17.700x019","D17.700x023","D18.000x800","D18.000x814","D18.000x857","D18.100x015","D18.100x025","D18.100x026","D38.102","D38.104","D48.115","E83.104+J99.8*","E84.001","E84.901","E85.404","E85.407","E89.802","I00.x00x007+J17.8*","I88.106","I88.107","I88.900x002","I88.900x008","I89.000x016","I89.000x027","I89.000x028","I89.000x029","I89.003","I89.800x016","I89.800x017","I89.800x018","I89.800x021","I89.800x023","I89.804","I89.807","J39.807","J39.808","J39.810","J66.800","J68.201","J68.301","J68.400","J68.800","J68.900","J95.002","J95.401","J95.800x009","J95.800x021","J95.802","J95.808","J95.810","J98.000x009","J98.000x011","J98.000x012","J98.000x013","J98.001","J98.002","J98.003","J98.004","J98.005","J98.006","J98.007","J98.008","J98.009","J98.010","J98.011","J98.100","J98.101","J98.102","J98.400x001","J98.400x005","J98.400x008","J98.400x012","J98.400x013","J98.400x016","J98.400x019","J98.401","J98.402","J98.403","J98.404","J98.405","J98.407","J98.408","J98.409","J98.410","J98.411","J98.412","J98.413","J98.415","J98.416","J98.417","J98.418","J98.500x001","J98.500x007","J98.500x008","J98.501","J98.502","J98.503","J98.504","J98.505","J98.506","J98.507","J98.508","J98.600x001","J98.601","J98.602","J98.800x001","J98.800x003","J98.800x004","J98.800x006","J98.800x007","J98.800x009","J98.800x014","J98.800x016","J98.800x018","J98.801","J98.901","M30.100","M31.300x002","M31.302+J99.1*","M31.304+J99.1*","M32.103+J99.1*","M33.103+J99.1*","M34.800x001+J99.1*","N80.802","N80.809","Q27.800x033","Q28.800x007","Q28.801","Q32.102","Q32.200","Q32.300","Q32.400x002","Q32.400x004","Q32.400x005","Q32.401","Q32.402","Q33.000","Q33.002","Q33.003","Q33.100","Q33.100","Q33.200","Q33.301","Q33.400","Q33.500","Q33.600","Q33.800x001","Q33.800x002","Q33.900","Q34.100","Q34.900","Q85.901","Q85.904","Q85.908","Q89.209","Q89.800x910","R59.009","R84.000","R84.100","R84.200","R84.300","R84.400","R84.500","R84.600","R84.700","R84.800","R91.x01","R91.x04","R94.201","R94.202","S27.501","S27.510","T17.400","T17.500","T17.501","T17.801","T17.802","T17.803","T17.804","T17.900","T17.901","T27.100x001","T27.200x001","T27.300","T79.800x007","T81.800x012","T86.800x011","T86.803"};
        String[] adrg_zd1={};
        String[] adrg_ss={};
        String[] adrg_ss1={};
        
        if (true && Base.contains(adrg_zd,record.zdList[0])){
            Base.groupMessages.putMessage(record.Index,"符合EZ1入组条件，匹配规则：主诊断匹配");
                
            if (MDCE_DRG.EZ11_group(record)){
                return "EZ11";
            }
    
            if (MDCE_DRG.EZ13_group(record)){
                return "EZ13";
            }
    
            if (MDCE_DRG.EZ15_group(record)){
                return "EZ15";
            }

            return "EZ1";
        }else{
            return "";
        }
    }
}

